package name.as3.frameworkTest.commands
{
import name.as3.cmdFrameworks.addins.mediator.View2CenterAddin;
import name.as3.cmdFrameworks.interfaces.addins.IMediatorAddin;
import name.as3.cmdFrameworks.interfaces.INotification;
import name.as3.frameworkTest.enums.UIPanelType;
import name.as3.frameworkTest.mediators.LoginPanelMediator;
import name.as3.frameworkTest.view.LoginPanel;
import name.as3.frameworkTestSupport.command.TestAppCommand;

public class ShowLoginCommand extends TestAppCommand
{
	/**
	 *
	 */
	public function ShowLoginCommand()
	{
		super();
	}
//==================================================================================================
// public
//==================================================================================================
	override public function execute(obNote:INotification):void
	{
		this.uiManager.addMediator(UIPanelType.LoginPanel, 
									new LoginPanelMediator(),
									new LoginPanel(),
									Vector.<IMediatorAddin>([new View2CenterAddin()]) );
		
	}
}
}